package com.dnjn.happiness.survey.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dnjn.happiness.survey.domain.SurveyIntervalScore;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * 区间信息Mapper接口
 *
 * @author happiness
 * @date 2023-11-16
 */
public interface SurveyIntervalScoreMapper extends BaseMapper<SurveyIntervalScore> {

    @Delete("DELETE FROM svy_survey_interval_score WHERE survey_id = #{surveyId}")
    void deleteBySurveyId(Long surveyId);

    List<SurveyIntervalScore> selectGrade(Long surveyId);
}
